package ynu.edu.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import ynu.edu.common.dao.LogicDAO;
import ynu.edu.entity.Customer;

public interface CustomerDao extends LogicDAO<Customer,Long> {
    @Query("select c from Customer c where c.name=:name")
    public Customer findCustomerByName(@Param(value = "name")String name);
}
